package com.itany.order.service;


import com.itany.exception.RequestParamsException;
import com.itany.pojo.Order;
import com.itany.pojo.User;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface IOrderService {


     /**
      * 获取购物车
      * @return
      */
     List<Map<Object,Object>> findshoppingcart(User user);


     /**
      * 计算总价格
      * @return
      */
     BigDecimal countMoney(List<String> pricesArray);

     String getQrCode();

     /**
      * 生成订单
      */
     Order generateOrder(List<String> bookIdArray,User user) throws RequestParamsException;
}
